﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;

namespace CRM.Models
{
    [Keyless]
    public class MetaSt
    {
        public string Title { get; set; }
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public string Icon { get; set; }
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        [NotMapped]
        public List<string> Roles { get; set; }
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public bool? AlwaysShow { get; set; }
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public bool? Hidden { get; set; }

        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public bool? NoCache { get; set; }
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public bool? KeepAlive { get; set; }
    }
}